import java.io.*;
import java.awt.*;
import java.lang.*;

public class extends1  
{
   
   public static void main(String[] jim) throws IOException 
   {
    
       
       Son joe = new Son();
       joe.bumpsize();   // call to the parent method
       System.out.println("Son size is "+joe.size);
       joe.jumpsize(); // call to the son method
    
    } //end main

} //end class

class Parent 
    {
     protected int size = 5;
     
     void bumpsize()  //Parent method which is public by default
     {
      size++;
      System.out.println();
      System.out.println("Parent size is " + size);
     }
    }//end Parent
     class Son extends Parent   //Son is a subclass of Parent
      {
       private int size =5;
       
      void jumpsize()  //Son method which is public by default
     {
      size = ++size +1;
      System.out.println("Son size is now " + size);
     }
      }// end Son